#include<iostream>
#include<fstream>
#include<string>
using namespace std;
ifstream& open_file(ifstream& ,string &);


int main(int argc,char **argv)
{
  string logline,word;
  ifstream input;
  open_file(input,argv[1]);
  while(getline(input,logline))
    {
      istringstream strm(logline);
      {
	map<string,string> fields = line;
	asserteauals("212.74.15.68",field.get("%h"));
...
	  }



      }
      return 0;

}
ifstream& open_file(ifstream& ifs,string &file)
{
  ifs.close();
  ifs.clear();
  ifs.open(file.c_str());
  return ifs;
}





